<%--
    Document   : panelAdmin
    Created on : 15-dic-2011, 3:43:13
    Author     : sixviv
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="/VirtualBook/css/style.css" rel="stylesheet" type="text/css" media="screen" />
        <title>Detalles :: VirtualBook</title>
    </head>
    <body>
        <div id="header">
            
             <div id="menu">
             <ul>
             <li><a href="#"><strong>Administrador</strong></a></li>
            <li><a href="/VirtualBook/view/admin/addInstitution.jsp">Inicio</a></li>
             <li><a href="showAllInstitutionsAdminInstList.action">Ver lista de Instituciones</a></li>
             </ul>
        </div>
	<!-- end #menu -->
        </div>
<!-- end #header -->
<!-- end #header-wrapper -->
<div id="logo">
	<h1><a>Virtual</a></h1>
	<p><em>Book</em></p>
</div>
<hr />
<!-- end #logo -->
<div id="page">
	<div id="content">
		<div id="content-bgtop">
                    <h1>Lista de Instituciones</h1>
                    <div id="content-bgbtm">
                    
                    </div>
		</div>
	
           <h3>Lista de Instituciones</h3>
        
        <table>
                <thead>
                <th><s:text name="Nombre"/></th>
                <th><s:text name="Dirección"/></th>
                <th><s:text name="Teléfono"/></th>
                <th><s:text name=""/></th>
                 <th><s:text name=""/></th>
                 <th><s:text name=""/></th>
                </thead>
                <tbody>
                    <s:iterator value="institutions">
                        <s:url action="showInstitutionDetailsAdminInstDetails" var="instDetails">
                            <s:param name="institutionId" value="idinstitution"/>
                        </s:url>
                       
                        <tr>
                            <td><s:property value="name"/></td>
                            <td><s:property value="address"/></td>
                            <td><s:property value="phone"/></td>
                            <td><s:a href="%{instDetails}"><s:text name="ver Detalles"/></s:a></td>
                            <td>
                                <s:url action="updateAdminInstDetails" var="linkUpdate">
                                    <s:param name="institutionId">
                                        <s:property value="idinstitution"/>
                                    </s:param>
                                </s:url>
                                <a href="${linkUpdate}">Actualizar</a>
                            </td>
                            <td>
                                <s:url action="deleteAdminInstMgmt" var="linkLista">
                                    <s:param name="insIdToDelete">
                                        <s:property value="user.iduser"/>
                                    </s:param>
                                </s:url>
                                <a href="${linkLista}" onclick="return confirm('¿Está seguro que desea eliminar?');">eliminar</a>
                            </td>
                        </tr>                        
                    </s:iterator>
                </tbody>
            </table>         
        
        
        </div>
	<!-- end #content -->
	<div style="clear: both;">&nbsp;</div>
	<!-- end #page -->
	<div id="footer">

	</div>
	<!-- end #footer -->
</div>
    </body>
</html>
